package top.luoblog.observer.withjdk.push;

import java.util.Observable;

/**
 * @author : luo
 * @description : 可观察者(主题) 继承 Observable
 */
public class CounterObservable extends Observable {

    private int count;

    public void setCount(int count) {
        this.count = count;
        setChanged();
        notifyObservers(count);
    }

}
